package com.tang.model.factorymethod;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/8/15 12:22
 * @Desc 工厂的工厂 -> 工厂方法模式
 * @Remarks
 */
public class FactoryMethodTest {
    public static void main(String[] args) {
        ICourseFactory courseFactory = JavaCourseFactory.getInstance();
        courseFactory.createInstance().showCourseName();

        courseFactory = PythonCourseFactory.getInstance();
        courseFactory.createInstance().showCourseName();
    }
}
